package vn.aptech.leaveManagementSystem.view.util;

import java.util.TimerTask;

import vn.aptech.leaveManagementSystem.view.director.DirectorMainForm;
import vn.aptech.leaveManagementSystem.view.manager.DemoManagerMainForm;

public class TimerTaskForDirector extends TimerTask{
	private DirectorMainForm mainform;
	public TimerTaskForDirector(DirectorMainForm mainform) {
		this.mainform=mainform;
	}

	@Override
	public void run() {
		mainform.UpdateSource();
		System.out.println("source updated");
	}
}
